package com.kefu.smartCall.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName(value="sc_task_call_msg")
@ApiModel(description = "外呼任务数据通话详情")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ScTaskCallMsg implements Serializable{
	@TableId(value="id",type=IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @TableField(value="tenant_id")
    @ApiModelProperty(value = "租户id")
    private String tenantId;

    @TableField(value="task_id")
    @ApiModelProperty(value = "任务id")
    private String taskId;
    
    @TableField(value="task_call_id")
    @ApiModelProperty(value = "数据id")
    private String taskCallId;
    
    @TableField(value="msg_time")
    @ApiModelProperty(value = "消息时间")
    private Long msgTime;
    
    @TableField(value="sender_type")
    @ApiModelProperty(value = "发送者类型：1用户，2机器人")
    private Integer senderType;
    
    @TableField(value="msg_content")
    @ApiModelProperty(value = "消息内容")
    private String msgContent;

    @TableField(value="doc_answer")
    @ApiModelProperty(value = "词条答案")
    private String docAnswer;

    @TableField(value = "template_node_id")
    @ApiModelProperty(value = "模板节点id")
    private String templateNodeId;

    @TableField(value = "template_node_name")
    @ApiModelProperty(value = "模板节点名称")
    private String templateNodeName;

    @TableField(value = "template_node_remark")
    @ApiModelProperty(value = "模板节点备注")
    private String templateNodeRemark;

    @ApiModelProperty(value = "模板节点自定义变量名")
    private String templateNodeVarName;

    @TableField(value = "answer_type_id")
    @ApiModelProperty(value = "用户回复类型id")
    private String answerTypeId;

    @TableField(value = "answer_type_name")
    @ApiModelProperty(value = "用户回复类型名称")
    private String answerTypeName;

    @TableField(value = "description")
    @ApiModelProperty(value = "机器人回复节点描述")
    private String description;

    @ApiModelProperty(value = "词条问题")
    private String docQuestion;

    @ApiModelProperty(value = "模板id")
    private String templateId;

    @ApiModelProperty(value = "用户回复类型：0未知问题，1节点问题，2通用问题")
    private Integer answerTypeStatus;

    @ApiModelProperty(value = "用户问题录音")
    private String questionVoiceUrl;
    private static final long serialVersionUID = 1L;
}